#include <gtest/gtest.h>
#include "Vector2D.h"
using namespace Math;
TEST(Vector2D,Addition)
{
	Vector2D first(2.3f, 3.4f);
	Vector2D second(2.3f, 3.4f);
	Vector2D result = first + second;
	EXPECT_FLOAT_EQ(4.6f,result.x);
	EXPECT_FLOAT_EQ(6.8f,result.y);
	//EXPECT_EQ(60,variable);
}

TEST(Vector2D,ScalerMultiplication)
{
	Vector2D first(2.3f, 3.4f);
	float scaler = 3.0f;
	Vector2D  result1 = scaler*first;
	Vector2D  result2 = first*scaler;
	EXPECT_FLOAT_EQ(6.9f,result1.x);
	EXPECT_FLOAT_EQ(result1.x,result2.x);

	EXPECT_FLOAT_EQ(10.2f,result1.y);
	EXPECT_FLOAT_EQ(result1.y,result2.y);
}


TEST(IO,Test1)
{
	int variable=60;
	EXPECT_EQ(60,variable);
}

